<?php
return array(
    'goods_table_head'     => array(
        'id'             =>  '编号',
        'goods_name'     =>  '商品名称',
        'goods_category' =>  '商品分类',
        'is_on_sale'     =>  '上架',
        'is_best'        =>  '精品',
        'is_new'         =>  '新品',
        'is_hot'         =>  '热销',
        'goods_number'   =>  '库存',
        'operation'      =>  '操作'
    ),
    'goods_form_tab'       => array('基本信息','详细描述','商品属性','其他信息','商品相册'),
    'goods_base_info'      => array(
        array('title' => '商品名称','name'=>'goods_name','type' => 'text','data_type' => '*', 'is_must' => 1,'nullmsg'=> '请填写商品名称','ignore' => ''),
        array('title' => '商品货号','name' => 'goods_sn','type' => 'text','data_type' => '*', 'is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '商品分类','name' => 'goods_category','type' => 'select','data_type' => 'n','is_must' => 1,'nullmsg' => '请选择商品分类','ignore' => ''),
        array('title' => '扩展分类','name' => 'goods_extend_category','type' => 'hidden_select','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '商品品牌','name' => 'goods_brand','type' => 'select','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '本店售价','name' => 'shop_price','type' => 'text','data_type' => 'n','is_must' => 1,'nullmsg' => '请填写本店售价','ignore' => ''),
        array('title' => '会员价格','name' => 'user_price','type' => 'text','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '商品优惠价格','name' => 'discount_price','type' => 'text','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '市场售价','name' => 'market_price','type' => 'text','data_type' => 'n', 'is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '赠送消费积分数','name' => 'give_integral','type' => 'text','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '赠送等级积分数','name' => 'rank_integral','type' => 'text','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '积分购买金额','name' => 'bought_integral','type' => 'text','data_type' => 'n','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '促销价','name' => 'promotion_price','type' => 'text','data_type' => 'n','is_must' => 0,'nullmsg' => '请填写促销价格','ignore' => 'ignore'),
        array('title' => '促销日期','name' => 'promotion_date','type' => 'date','data_type' => 'date','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
        array('title' => '商品图片','name' => 'goods_img','type' => 'upload','data_type' => '*','is_must' => 0,'nullmsg' => '','ignore' => 'ignore'),
    ),
    'goods_other_info'     => array(
        array('title' => '商品重量','name' => 'goods_weight','type' => 'text','data_type' => 'n'),
        array('title' => '商品库存数量','name' => 'goods_number','type' => 'text','data_type' => 'n'),
        array('title' => '库存警告数量','name' => 'warning_number','type' => 'text','data_type' => 'n'),
        array('title' => '加入推荐','name' => 'goods_recommend_attr','type' => 'checkbox','data_type' => '*'),
        array('title' => '是否上架','name' => 'is_on_sale','type' => 'radio','data_type' => 'n'),
        array('title' => '是否为免运费商品','name' => 'is_shipping_free','type' => 'radio','data_type' => 'n'),
        array('title' => '商品关键词','name' => 'goods_keywords','type' => 'text','data_type' => '*'),
        array('title' => '商品简单描述','name' => 'goods_description','type' => 'textarea','data_type' => '*'),
        array('title' => '商家备注' ,'name' => 'goods_comment','type' => 'textarea','data_type' => '*'),
    ),
    'goods_recommend_attr' => array('精品','新品', '热销', '特价', '推荐'),
    'goods_is_on_sale'     => array('上架','下架'),
    'category_table_head'  => array('分类名称','商品数量','数量单位','导航栏显示','是否显示','排序','操作'),
    'category_info'        => array(
        array('title' => '分类名称','name' => 'category_name','type' => 'text','data_type'=>'','is_must'=>''),
        array('title' => '上级分类','name' => 'top_id','type' => 'select','data_type'=>'','is_must'=>''),
        array('title' => '排序','name' => 'category_sort','type' => 'text','data_type'=>'','is_must'=>''),
        array('title' => '是否显示','name' => 'is_show','type' => 'radio','data_type'=>'','is_must'=>''),
        array('title' => '是否显示在导航栏','name' => 'is_nav_show','type' => 'radio','data_type'=>'','is_must'=>''),
        array('title' => '设置为首页推荐','name' => 'is_nav_recommend','type' => 'checkbox','data_type'=>'','is_must'=>''),
        array('title' => '筛选属性','name' => 'filter_attr','type' => 'more_select','data_type'=>'','is_must'=>''),
        array('title' => '关键字','name' => 'category_keywords','type' => 'textarea','data_type'=>'','is_must'=>''),
        array('title' => '分类描述','name' => 'category_description','type' => 'textarea','data_type'=>'','is_must'=>''),
    ),
    'type_table_head'      => array("商品类型名称","属性分组","属性数","状态","操作")
);